package com.app.mapper;

import com.app.model.CustomerModel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
@Mapper
public interface CustomerMapper extends BaseMapper<CustomerModel> {

    List<CustomerModel> getCusAndIntentionList(CustomerModel model);

    int getCusAndIntentionCount(CustomerModel model);

    int selectAllCount( Integer streetId);

    List<CustomerModel> selectAll(Integer page, Integer limit, Integer streetId);

    List<CustomerModel> getCustomerByStreet(String startTime,String endTime);
    List<CustomerModel> getCustomerAndStreet(String startTime,String endTime);

    List<CustomerModel> selectTrendOfVisits(String startTime, String endTime);

    List<Map<String,Object>> regPeoTownStreetCount();
    List<Map<String,Object>> browserPeoTownStreetCount();


}
